<template>
	<view class="uiwu">
		<view v-html="textWord"></view>
	</view>
</template>

<script setup lang="ts">
import { agreement, uiwu } from "@/api/interface/interface";
import { onMounted, ref } from "vue"
const textWord = ref(null);
const titleText = ref(null)
const getAgreement = async (): Promise<any> => {
	const { data } = await agreement(5);
	data.content = uiwu.richtext(data.content)
	textWord.value = data.content
	titleText.value = data.title
}
onMounted(() => {
	getAgreement()
})
</script>

<style lang="scss">
.uiwu {
	padding: 32rpx;
	font-size: 28rpx;
}
</style>
